s1 = input('s1:')
s2 = input('s2:')
for i in s1:
    if i in s2:
        s1=s1.replace(i,'')
print(s1)